const db = require("../config/config");
module.exports = {
  //根据用户id，，获取该用户购物车信息
 delRoleInfo(req, res) {
    console.log(req.query,'req');
    let roleId=req.query.roleId
    console.log(roleId,'roleId');
    db.dbMysql(`delete from roleInfo where roleId=?`, [roleId], function (err, data) {
      if (data) {
        res.send({
          code: 200,
          data: data,
          msg: "角色管理查询成功",
        });
      } else {
        res.send({
          code: 500,
          msg: "服务器错误",
        });
      }
    });
  },
};
